﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyWeb.Business;

namespace Web
{
    public partial class NhomSanPham : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

           
            //if (!IsPostBack)
            //{
            //    string ID = Request.QueryString["gid"];
            //    listproduct.DataSource = ProductService.Product_GetByGroupProduct_Id(ID);
            //    listproduct.DataBind();
            //}
        }
        public string Format_Price(string values)
        {
            values = values.Replace(",", "");
            values = values.Replace(".", "");
            string s = "";
            while (values.Length > 3)
            {
                s = "." + values.Substring(values.Length - 3) + s;
                values = values.Substring(0, values.Length - 3);
            }
            s = values + s + "VND";
            return s;
        }
    }
}